package com.file.service;

import com.file.form.result.ImgResultForm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by chairal on 2017/7/21.
 */
public interface IFileProcessService {

    /**
     * 上传图片到临时路径
     *
     * @param request
     */
    ImgResultForm uploadFile(HttpServletRequest request);

    /**
     * 文件下载
     *
     * @param request
     * @param response
     */
    void downFile(HttpServletRequest request, HttpServletResponse response);

    /**
     * 上传图片ftp服务器
     *
     * @param request
     */
    ImgResultForm uploadFtpFile(HttpServletRequest request);

}
